﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BillPaymentList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Shop.Reconciliations.BillPaymentList" %>

<%@ Import Namespace ="ZLCMS.Business.Util" %>
<%@ Import Namespace="ZLCMS.Commands.User.Util" %>
<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>
<%=_framePage.TabInfoHtml()%>
<style type="text/css">
       .shoplist p{ line-height: 18px;word-break: break-all; word-wrap: break-word;}
</style>
<form id="pageForm" method="post" class="pageForm" runat="Server">

<div class="pageHeader">
	<div class="searchBar">
		<table class="searchContent">
        <tr>	
                <td>
			<span>起止时间&nbsp;</span>
			<asp:TextBox ID="start" runat="server" class="date" format="yyyy-MM-dd" readonly="true" cond="start"></asp:TextBox>-
			<asp:TextBox ID="end" class="date" format="yyyy-MM-dd" readonly="true" runat="server" cond="end"></asp:TextBox>
		</td>
        <% if (AuthUtil.CheckAuthorization("BILL_MAN", "VIEW_ALL", uAcc))
           { %>
        <td>
			<span>商家&nbsp;</span>
            </td><td>
			<asp:dropdownlist runat="server" ID="DeptCode" cond="deptcode" class="combox"></asp:dropdownlist>
		</td>
        <%} %>
        <td>
			</td>
		</tr>
		</table>
		
	    <div class="subBar">
			<ul>

			 <li>
			    <a class="buttonActive" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.query(this);" 
			    target="navTab" rel="<%= _framePage.NavTabId %>" title="<%= _framePage.NavTabTitle %>"><span>查询</span></a>
			</li>
          <%-- <li>
			    <a class="button" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.exportFile(this);" 
			    target="dwzExport" rel="exportexcel" title="导出EXCEL"><span>导出EXCEL</span></a>
			</li>--%>

			</ul>
	    </div>
	</div>
</div>

<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">
         <% if (AuthUtil.CheckAuthorization("BILL_MAN", "VIEW_ALL", uAcc) || AuthUtil.CheckAuthorization("BILL_MAN", "PAY", uAcc))
            { %>
        	<li><a class="add"  href="/SystemManage/Basics/Shop/Reconciliations/BillPaymentDetail.aspx?bwno=<%= Request["bno"]%>&dc=<%= Request["deptcode"]%>" target="navTab" rel="BillPaymentDetail" title="账单-添加支付记录"><span>添加</span></a></li>
            <%} %>
        </ul>
	</div>
	<div class="tableList" layoutH="118">
	<table class="list shoplist" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
              <th width="200px">商家名称</th>

			    <th width="200px">日期</th>

                <th width="200px">支付金额</th>

                <th width="100px">状态</th>

                <th width="100px">备注</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="grid">
                <ItemTemplate>
			    <tr target="uid">
                <td><%# ParamKit.GetValue("SysDepartmentInfo", Eval("DeptCode"), "--")%>(<%# Eval("DeptCode")%>)</td>
				    <td ><%# Eval("OptDate")%></td>
             
                    <td>
                       <%# Eval("PaidFee")%>
                    </td>
				    <td>
				        <%# (string)Eval("Status") == "0" ? "未处理" :((string)Eval("Status") == "1" ? "处理中":"已完成")%>
				    
                    </td>
                    <td><%# Eval("Memo")%></td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>
</div>
	
     <%= _framePage.GetPagerContentHtml()%>
</div>
</form>